


package smap;

import BD.AlunoBD;
import BD.CursoBD;
import BD.MateriasConcluidasBD;
import BD.ProfessorBD;
import ConexaoBackupBD.MetodosVerificacaoBD;
import ConexaoBackupBD.Relatorios;
import DAO.*;
import java.text.ParseException;
import java.util.ArrayList;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JOptionPane;
import javax.swing.table.DefaultTableModel;

public class TelaCadAluno extends javax.swing.JDialog {

    private boolean cadastrar;
    
    AlunoDAO aluDao = new AlunoDAO();
    AlunoBD alu = new AlunoBD();
    
    AtividadesDAO atDao = new AtividadesDAO();
    
    //Carregar o combo de professor
    ProfessorDAO proDao = new ProfessorDAO();
    List<ProfessorBD> listaprofessor = new ArrayList<ProfessorBD>();
    
    //Carregar combobox de curso
    CursoDAO curDao = new CursoDAO();
    List<CursoBD> listacurso = new ArrayList<CursoBD>();
    
    
    public TelaCadAluno(java.awt.Frame parent, boolean modal) {
        super(parent, modal);
        initComponents();
        chbCheckTrueOutrosDocs.setVisible(false);
        btnRelatorioMaterias.setVisible(false);
    }
    
    public boolean isCadastrar() {
        return cadastrar;
    }

    public void setCadastrar(boolean cadastrar) {
        this.cadastrar = cadastrar;
    }
    
    public void carregarComboProfessor(){
        listaprofessor = proDao.carregarComboProfessor();
       
        for(int i = 0; i<listaprofessor.size(); i++){
            cmbProfessor.addItem(listaprofessor.get(i));
        }
    }
    
    public void carregarComboCurso(){
        listacurso = curDao.carregarComboCurso();
        
        for(int i = 0; i<listacurso.size(); i++){
            cmbCurso.addItem(listacurso.get(i));
        }
    }

    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        grpSexo = new javax.swing.ButtonGroup();
        pnlMateriasConcluidas = new javax.swing.JTabbedPane();
        pnlDadosBasicos = new javax.swing.JPanel();
        lblRa = new javax.swing.JLabel();
        lblCpf = new javax.swing.JLabel();
        txtCpf = new javax.swing.JFormattedTextField();
        lblNome = new javax.swing.JLabel();
        txtNome = new javax.swing.JTextField();
        lblTel = new javax.swing.JLabel();
        txtTelefone = new javax.swing.JFormattedTextField();
        txtCelular = new javax.swing.JFormattedTextField();
        lblCel = new javax.swing.JLabel();
        lblBolsista = new javax.swing.JLabel();
        cmbBolsista = new javax.swing.JComboBox();
        lblDataIngresso = new javax.swing.JLabel();
        jPanel2 = new javax.swing.JPanel();
        rdbMasculino = new javax.swing.JRadioButton();
        rdbFeminino = new javax.swing.JRadioButton();
        txtData = new com.toedter.calendar.JDateChooser();
        lblEmail = new javax.swing.JLabel();
        txtEmail = new javax.swing.JTextField();
        lblCurso = new javax.swing.JLabel();
        cmbCurso = new javax.swing.JComboBox();
        cmbProfessor = new javax.swing.JComboBox();
        lblOrientador = new javax.swing.JLabel();
        txtRa = new javax.swing.JFormattedTextField();
        pnlDocumentos = new javax.swing.JPanel();
        chbRG = new javax.swing.JCheckBox();
        chbCPF = new javax.swing.JCheckBox();
        chbCertidao = new javax.swing.JCheckBox();
        chbTituloEleitor = new javax.swing.JCheckBox();
        chbCurriculum = new javax.swing.JCheckBox();
        chbFoto = new javax.swing.JCheckBox();
        chbCarta = new javax.swing.JCheckBox();
        chbHistorico = new javax.swing.JCheckBox();
        chbDiploma = new javax.swing.JCheckBox();
        chbCertificadoMilitar = new javax.swing.JCheckBox();
        jLabel2 = new javax.swing.JLabel();
        chbCheckOutrosDocs = new javax.swing.JCheckBox();
        chbCheckTrueOutrosDocs = new javax.swing.JCheckBox();
        jScrollPane2 = new javax.swing.JScrollPane();
        txtObservacoes = new javax.swing.JEditorPane();
        jPanel1 = new javax.swing.JPanel();
        jScrollPane1 = new javax.swing.JScrollPane();
        tblMateriasConcluidas = new javax.swing.JTable();
        txtTotalCreditos = new javax.swing.JTextField();
        jLabel1 = new javax.swing.JLabel();
        btnRelatorioMaterias = new javax.swing.JButton();
        pnlVoltar = new javax.swing.JPanel();
        btnVoltar = new javax.swing.JButton();
        btnCadastrar = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setTitle("Cadastrar Aluno");
        setResizable(false);

        pnlMateriasConcluidas.setBorder(javax.swing.BorderFactory.createLineBorder(java.awt.Color.lightGray));

        lblRa.setText("* RA:");

        lblCpf.setText("* CPF:");

        try {
            txtCpf.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.MaskFormatter("###.###.###-##")));
        } catch (java.text.ParseException ex) {
            ex.printStackTrace();
        }

        lblNome.setText("* Nome:");

        lblTel.setText("Tel:");

        try {
            txtTelefone.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.MaskFormatter("(##) ####-####")));
        } catch (java.text.ParseException ex) {
            ex.printStackTrace();
        }

        try {
            txtCelular.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.MaskFormatter("(##) ####-####")));
        } catch (java.text.ParseException ex) {
            ex.printStackTrace();
        }

        lblCel.setText("Cel:");

        lblBolsista.setText("Bolsista:");

        cmbBolsista.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Sim", "Não" }));

        lblDataIngresso.setText("* Data de Ingresso:");

        jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(java.awt.Color.lightGray), "Sexo"));

        grpSexo.add(rdbMasculino);
        rdbMasculino.setSelected(true);
        rdbMasculino.setText("Masculino");
        rdbMasculino.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                rdbMasculinoActionPerformed(evt);
            }
        });

        grpSexo.add(rdbFeminino);
        rdbFeminino.setText("Feminino");
        rdbFeminino.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                rdbFemininoActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(rdbMasculino)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(rdbFeminino)
                .addContainerGap(43, Short.MAX_VALUE))
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                .addComponent(rdbMasculino)
                .addComponent(rdbFeminino))
        );

        lblEmail.setText("E-mail:");

        lblCurso.setText("* Curso:");

        lblOrientador.setText("Orientador:");

        txtRa.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.NumberFormatter(new java.text.DecimalFormat("#0"))));

        javax.swing.GroupLayout pnlDadosBasicosLayout = new javax.swing.GroupLayout(pnlDadosBasicos);
        pnlDadosBasicos.setLayout(pnlDadosBasicosLayout);
        pnlDadosBasicosLayout.setHorizontalGroup(
            pnlDadosBasicosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlDadosBasicosLayout.createSequentialGroup()
                .addGap(12, 12, 12)
                .addGroup(pnlDadosBasicosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pnlDadosBasicosLayout.createSequentialGroup()
                        .addComponent(lblRa)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(txtRa, javax.swing.GroupLayout.PREFERRED_SIZE, 113, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addGroup(pnlDadosBasicosLayout.createSequentialGroup()
                        .addComponent(lblOrientador)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(cmbProfessor, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addGroup(pnlDadosBasicosLayout.createSequentialGroup()
                        .addComponent(lblTel)
                        .addGap(12, 12, 12)
                        .addComponent(txtTelefone, javax.swing.GroupLayout.PREFERRED_SIZE, 147, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(lblCel)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(txtCelular))
                    .addGroup(pnlDadosBasicosLayout.createSequentialGroup()
                        .addComponent(lblBolsista)
                        .addGap(12, 12, 12)
                        .addComponent(cmbBolsista, javax.swing.GroupLayout.PREFERRED_SIZE, 115, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(lblCpf)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(txtCpf))
                    .addGroup(pnlDadosBasicosLayout.createSequentialGroup()
                        .addComponent(lblEmail)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(txtEmail))
                    .addGroup(pnlDadosBasicosLayout.createSequentialGroup()
                        .addComponent(lblCurso)
                        .addGap(4, 4, 4)
                        .addComponent(cmbCurso, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addGroup(pnlDadosBasicosLayout.createSequentialGroup()
                        .addComponent(lblDataIngresso)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(txtData, javax.swing.GroupLayout.PREFERRED_SIZE, 146, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(0, 0, Short.MAX_VALUE))
                    .addGroup(pnlDadosBasicosLayout.createSequentialGroup()
                        .addComponent(lblNome)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(txtNome)))
                .addContainerGap())
        );
        pnlDadosBasicosLayout.setVerticalGroup(
            pnlDadosBasicosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlDadosBasicosLayout.createSequentialGroup()
                .addGroup(pnlDadosBasicosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(pnlDadosBasicosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(lblRa)
                        .addComponent(txtRa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGap(10, 10, 10)
                .addGroup(pnlDadosBasicosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblNome)
                    .addComponent(txtNome, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(pnlDadosBasicosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(txtTelefone, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtCelular, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(pnlDadosBasicosLayout.createSequentialGroup()
                        .addGap(5, 5, 5)
                        .addGroup(pnlDadosBasicosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(lblTel)
                            .addComponent(lblCel))))
                .addGap(18, 18, 18)
                .addGroup(pnlDadosBasicosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(cmbBolsista, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtCpf, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(pnlDadosBasicosLayout.createSequentialGroup()
                        .addGap(5, 5, 5)
                        .addGroup(pnlDadosBasicosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(lblBolsista)
                            .addComponent(lblCpf))))
                .addGap(12, 12, 12)
                .addGroup(pnlDadosBasicosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pnlDadosBasicosLayout.createSequentialGroup()
                        .addGap(4, 4, 4)
                        .addComponent(lblDataIngresso))
                    .addComponent(txtData, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(12, 12, 12)
                .addGroup(pnlDadosBasicosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pnlDadosBasicosLayout.createSequentialGroup()
                        .addGap(5, 5, 5)
                        .addComponent(lblEmail))
                    .addComponent(txtEmail, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(12, 12, 12)
                .addGroup(pnlDadosBasicosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pnlDadosBasicosLayout.createSequentialGroup()
                        .addGap(5, 5, 5)
                        .addComponent(lblCurso))
                    .addComponent(cmbCurso, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(12, 12, 12)
                .addGroup(pnlDadosBasicosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pnlDadosBasicosLayout.createSequentialGroup()
                        .addGap(5, 5, 5)
                        .addComponent(lblOrientador))
                    .addComponent(cmbProfessor, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(0, 157, Short.MAX_VALUE))
        );

        pnlMateriasConcluidas.addTab("Dados básicos", pnlDadosBasicos);

        pnlDocumentos.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        chbRG.setText("RG");
        pnlDocumentos.add(chbRG, new org.netbeans.lib.awtextra.AbsoluteConstraints(27, 20, -1, -1));

        chbCPF.setText("CPF");
        pnlDocumentos.add(chbCPF, new org.netbeans.lib.awtextra.AbsoluteConstraints(27, 62, -1, -1));

        chbCertidao.setText("Certidão de Nascimento / Casamento");
        pnlDocumentos.add(chbCertidao, new org.netbeans.lib.awtextra.AbsoluteConstraints(27, 272, -1, -1));

        chbTituloEleitor.setText("Titulo de Eleitor");
        pnlDocumentos.add(chbTituloEleitor, new org.netbeans.lib.awtextra.AbsoluteConstraints(27, 104, -1, -1));

        chbCurriculum.setText("Currículo Lattes");
        pnlDocumentos.add(chbCurriculum, new org.netbeans.lib.awtextra.AbsoluteConstraints(27, 146, -1, -1));

        chbFoto.setText("Foto 3x4");
        pnlDocumentos.add(chbFoto, new org.netbeans.lib.awtextra.AbsoluteConstraints(27, 188, -1, -1));

        chbCarta.setText("Cartas de Recomendação");
        pnlDocumentos.add(chbCarta, new org.netbeans.lib.awtextra.AbsoluteConstraints(27, 230, -1, -1));

        chbHistorico.setText("Histórico Escolar");
        chbHistorico.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                chbHistoricoActionPerformed(evt);
            }
        });
        pnlDocumentos.add(chbHistorico, new org.netbeans.lib.awtextra.AbsoluteConstraints(220, 20, -1, -1));

        chbDiploma.setText("Diploma");
        pnlDocumentos.add(chbDiploma, new org.netbeans.lib.awtextra.AbsoluteConstraints(220, 60, -1, -1));

        chbCertificadoMilitar.setText("Certificado Militar");
        pnlDocumentos.add(chbCertificadoMilitar, new org.netbeans.lib.awtextra.AbsoluteConstraints(220, 100, -1, -1));

        jLabel2.setText("Observações");
        pnlDocumentos.add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 310, -1, -1));

        chbCheckOutrosDocs.setText("Possui outros documentos");
        chbCheckOutrosDocs.addChangeListener(new javax.swing.event.ChangeListener() {
            public void stateChanged(javax.swing.event.ChangeEvent evt) {
                chbCheckOutrosDocsStateChanged(evt);
            }
        });
        chbCheckOutrosDocs.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                chbCheckOutrosDocsActionPerformed(evt);
            }
        });
        pnlDocumentos.add(chbCheckOutrosDocs, new org.netbeans.lib.awtextra.AbsoluteConstraints(220, 140, -1, -1));

        chbCheckTrueOutrosDocs.setText("Documentos entregues");
        pnlDocumentos.add(chbCheckTrueOutrosDocs, new org.netbeans.lib.awtextra.AbsoluteConstraints(220, 180, -1, -1));

        jScrollPane2.setViewportView(txtObservacoes);

        pnlDocumentos.add(jScrollPane2, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 340, 380, 140));

        pnlMateriasConcluidas.addTab("Documentos", pnlDocumentos);

        tblMateriasConcluidas.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {
                "Ano", "Matéria", "Créditos"
            }
        ) {
            Class[] types = new Class [] {
                java.lang.Integer.class, java.lang.String.class, java.lang.Integer.class
            };
            boolean[] canEdit = new boolean [] {
                false, false, false
            };

            public Class getColumnClass(int columnIndex) {
                return types [columnIndex];
            }

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        jScrollPane1.setViewportView(tblMateriasConcluidas);
        tblMateriasConcluidas.getColumnModel().getColumn(0).setMinWidth(60);
        tblMateriasConcluidas.getColumnModel().getColumn(0).setPreferredWidth(60);
        tblMateriasConcluidas.getColumnModel().getColumn(0).setMaxWidth(60);
        tblMateriasConcluidas.getColumnModel().getColumn(1).setResizable(false);
        tblMateriasConcluidas.getColumnModel().getColumn(1).setPreferredWidth(100);
        tblMateriasConcluidas.getColumnModel().getColumn(2).setMinWidth(70);
        tblMateriasConcluidas.getColumnModel().getColumn(2).setPreferredWidth(70);
        tblMateriasConcluidas.getColumnModel().getColumn(2).setMaxWidth(70);

        txtTotalCreditos.setEnabled(false);

        jLabel1.setText("Total de créditos:");

        btnRelatorioMaterias.setText("Relatório");
        btnRelatorioMaterias.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnRelatorioMateriasActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(btnRelatorioMaterias)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 159, Short.MAX_VALUE)
                .addComponent(jLabel1)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(txtTotalCreditos, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
            .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel1Layout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 418, Short.MAX_VALUE)
                    .addContainerGap()))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                .addContainerGap(454, Short.MAX_VALUE)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtTotalCreditos, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel1)
                    .addComponent(btnRelatorioMaterias))
                .addContainerGap())
            .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel1Layout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 288, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(196, Short.MAX_VALUE)))
        );

        pnlMateriasConcluidas.addTab("Matérias Concluídas", jPanel1);

        pnlVoltar.setBorder(javax.swing.BorderFactory.createLineBorder(java.awt.Color.lightGray));

        btnVoltar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/voltar-icon.png"))); // NOI18N
        btnVoltar.setText("Voltar");
        btnVoltar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnVoltarActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout pnlVoltarLayout = new javax.swing.GroupLayout(pnlVoltar);
        pnlVoltar.setLayout(pnlVoltarLayout);
        pnlVoltarLayout.setHorizontalGroup(
            pnlVoltarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlVoltarLayout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(btnVoltar, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(153, 153, 153))
        );
        pnlVoltarLayout.setVerticalGroup(
            pnlVoltarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlVoltarLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(btnVoltar, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        btnCadastrar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/add-icon.png"))); // NOI18N
        btnCadastrar.setText("Cadastrar");
        btnCadastrar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnCadastrarActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(pnlVoltar, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addGroup(layout.createSequentialGroup()
                .addComponent(pnlMateriasConcluidas, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(0, 0, Short.MAX_VALUE))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(btnCadastrar, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(141, 141, 141))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(pnlMateriasConcluidas, javax.swing.GroupLayout.PREFERRED_SIZE, 532, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(btnCadastrar)
                .addGap(18, 18, 18)
                .addComponent(pnlVoltar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
        );

        pack();
        java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
        java.awt.Dimension dialogSize = getSize();
        setLocation((screenSize.width-dialogSize.width)/2,(screenSize.height-dialogSize.height)/2);
    }// </editor-fold>//GEN-END:initComponents

    private void btnVoltarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnVoltarActionPerformed
        this.dispose(); // Fecha Tela de Cadastro de Professor
    }//GEN-LAST:event_btnVoltarActionPerformed

    private void rdbMasculinoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_rdbMasculinoActionPerformed
        chbCertificadoMilitar.setVisible(true); //checkbox aparece
        chbCertificadoMilitar.setSelected(false); //checkbox não setado
    }//GEN-LAST:event_rdbMasculinoActionPerformed

    private void rdbFemininoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_rdbFemininoActionPerformed
        chbCertificadoMilitar.setVisible(false); //checkbox desaparece
        chbCertificadoMilitar.setSelected(true); //checkbox setado para docOk = 1
    }//GEN-LAST:event_rdbFemininoActionPerformed

    private void btnCadastrarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnCadastrarActionPerformed
    int docok = 1; // variavel para verificar documentos 
       if(txtNome.getText().trim().length() == 0 || txtCpf.getText().contentEquals("   .   .   -  ")
            || txtRa.getText().trim().length() == 0 || txtData.getDate() == null 
            || cmbCurso.getSelectedIndex() == -1 || cmbCurso.getSelectedIndex() == 0 ){
            
           JOptionPane.showMessageDialog(null,"Campos ra, nome, cpf, data de ingresso"
                    + " e curso são obrigatórios", "Campos Obrigatórios", JOptionPane.INFORMATION_MESSAGE);
       }
       
       else if(txtObservacoes.getText().trim().length() > 3000){
                JOptionPane.showMessageDialog(null,"Você utilizou mais de 3000 caracteres no campo Observações. Elimine informação desnecessária!",
                        "Número de caracteres excedido", JOptionPane.INFORMATION_MESSAGE);
            }
       
       else{
           
           
            //Metodos para conversões de data
            MetodosVerificacaoBD metBD = new MetodosVerificacaoBD();
            
            //dados do aluno
            alu.setRa(Integer.parseInt(txtRa.getText().trim()));
            alu.setNome(txtNome.getText().trim());
            alu.setCpf(txtCpf.getText()); // Mascara
            alu.setTelefone(txtTelefone.getText()); // Mascara
            alu.setCelular(txtCelular.getText()); // Mascara
            alu.setBolsista(cmbBolsista.getSelectedItem().toString());
            alu.setDataIngresso(metBD.formatarDataEua(txtData.getDate()));
            alu.setEmail(txtEmail.getText().trim());
            
            if(cmbProfessor.getSelectedIndex() != -1){
                alu.setCodProfessor(listaprofessor.get(cmbProfessor.getSelectedIndex()).getCodigo()); 
            }else{
                alu.setCodProfessor(-1); 
            }
            alu.setCodCurso(listacurso.get(cmbCurso.getSelectedIndex()).getCodigo());
            
            //Sexo
            if(rdbMasculino.isSelected()){
                alu.setSexo("M");
            }
            else{
                alu.setSexo("F");
            }
            
            // Verificar quais CheckBox estão selecionados para cadastrar no banco.            
            //RG
            if(chbRG.isSelected()){
                alu.setDocRG("S");
            }
            else{
                alu.setDocRG("N");
                docok = 0;
            }
            
            //cpf
            if(chbCPF.isSelected()){
                alu.setDocCPF("S");
            }
            else{
                alu.setDocCPF("N");
                 docok = 0;
            }
                        
            //Certidao Nascimento/Casamento
            if(chbCertidao.isSelected()){
                alu.setDocCertidao("S");
            }
            else{
                alu.setDocCertidao("N");
                 docok = 0;
            }
            
            //Titulo de Eleitor
            if(chbTituloEleitor.isSelected()){
                alu.setDocTitulo("S");
            }
            else{
                alu.setDocTitulo("N");
                 docok = 0;
            }
            
            //Curriculum
            if(chbCurriculum.isSelected()){
                alu.setDocCurriculum("S");
            }
            else{
                alu.setDocCurriculum("N");
                 docok = 0;
            }
            
            //Foto
            if(chbFoto.isSelected()){
                alu.setDocFoto("S");
            }
            else{
                alu.setDocFoto("N");
                docok = 0;
            }
            
            //carta
            if(chbCarta.isSelected()){
                alu.setDocCarta("S");
            }
            else{
                alu.setDocCarta("N");
                docok = 0;
            }
            
            //historico
             if(chbHistorico.isSelected()){
                alu.setDocHistorico("S");
            }
            else{
                alu.setDocHistorico("N");
                docok = 0;
            }
             
            //Diploma
            if(chbDiploma.isSelected()){
                alu.setDocDiploma("S");
            }
            else{
                alu.setDocDiploma("N");
                docok = 0;
            }
            
            //Certificado Militar
            if(chbCertificadoMilitar.isSelected()){
                alu.setDocCertificado("S");
            }
            else{
                alu.setDocCertificado("N");
                docok = 0;
            }
            
            if(chbCheckOutrosDocs.isSelected()){
                alu.setPossuiOutrosDocumentos("S");
                if (chbCheckTrueOutrosDocs.isSelected()){
                    alu.setOutrosDocsEntregues("S");
                }
                else{
                    alu.setOutrosDocsEntregues("N");
                    docok=0;
                }
            }
            else{
                alu.setPossuiOutrosDocumentos("N");
                alu.setOutrosDocsEntregues("N");
            }
            
            alu.setObservacoes(txtObservacoes.getText().trim());
            
            alu.setDocOK(docok);
            
            if(isCadastrar()){ //inserir
                if(aluDao.inserirAluno(alu)){
                    //limpar campos
                    txtNome.setText("");
                    txtRa.setText("");
                    txtCpf.setText("");
                    txtTelefone.setText("");
                    txtCelular.setText("");
                    cmbBolsista.setSelectedItem(0);
                    txtData.setDate(null);
                    txtEmail.setText("");
                    cmbProfessor.setSelectedItem(0);
                    cmbCurso.setSelectedItem(0);
                    
                    //checkbox's
                    chbCPF.setSelected(false);
                    chbRG.setSelected(false);
                    chbCertidao.setSelected(false);
                    chbTituloEleitor.setSelected(false);
                    chbFoto.setSelected(false);
                    chbCarta.setSelected(false);
                    chbCurriculum.setSelected(false);
                    chbDiploma.setSelected(false);
                    chbHistorico.setSelected(false);
                    chbCertificadoMilitar.setSelected(false);
                    chbCheckOutrosDocs.setSelected(false);
                    chbCheckTrueOutrosDocs.setVisible(false);
                    chbCheckTrueOutrosDocs.setSelected(false);
                    txtObservacoes.setText("");

                    if(docok == 0)
                        try {
                        atDao.inserirAlerta(alu.getNome(), txtData.getDate(), String.valueOf(alu.getRa()), "Documentos Faltantes", 6);
                    } catch (ParseException ex) {
                        Logger.getLogger(TelaCadAluno.class.getName()).log(Level.SEVERE, null, ex);
                    }
                    try {
                        atDao.inserirAlerta(alu.getNome(), txtData.getDate(), String.valueOf(alu.getRa()), "Creditos faltantes", 3);
                    } catch (ParseException ex) {
                        Logger.getLogger(TelaCadAluno.class.getName()).log(Level.SEVERE, null, ex);
                    }

       
                }                
            }else{ //alterar
                
                if (aluDao.alterarAluno(alu)) {
                    if(docok == 1)
                        //exclui a atividade se todos os documentos existirem
                        
                        atDao.verificaExclusaoAtividade(txtRa.getText().trim(), "Documentos Faltantes");
                    else{
                        //exclui as atividades anteriores após a exclusão e inclui após 
                        
                        atDao.verificaExclusaoAtividade(txtRa.getText().trim(), "Documentos Faltantes");
                        try {
                            atDao.inserirAlerta(txtNome.getText().trim(), txtData.getDate(), txtRa.getText(), "Documentos Faltantes", 6);
                        } catch (ParseException ex) {
                            Logger.getLogger(TelaCadAluno.class.getName()).log(Level.SEVERE, null, ex);
                        }
                    }
                    this.dispose();
                }                
            }
       }
    }//GEN-LAST:event_btnCadastrarActionPerformed

    private void chbHistoricoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_chbHistoricoActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_chbHistoricoActionPerformed

    private void btnRelatorioMateriasActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnRelatorioMateriasActionPerformed
         ArrayList<MateriasConcluidasBD> listaMateriasConcluidas = new ArrayList(); 
         for (int i=0; i < tblMateriasConcluidas.getRowCount(); i++){
             MateriasConcluidasBD mc = new MateriasConcluidasBD();
             mc.setAnoTurma((Integer)tblMateriasConcluidas.getValueAt(i, 0));
             mc.setNomeDisciplina(String.valueOf(tblMateriasConcluidas.getValueAt(i, 1)));
             mc.setCreditosDisciplina((Integer)tblMateriasConcluidas.getValueAt(i, 2));
             listaMateriasConcluidas.add(mc);
         }
        
         MetodosVerificacaoBD mv = new MetodosVerificacaoBD();
         String data = mv.convDataBra(mv.formatarDataEua(txtData.getDate()));
         
         
         Relatorios relatorioMC = new Relatorios();
         relatorioMC.relatorioDeMateriasConcluidas(txtNome.getText() + "_MateriasConcluidas", listaMateriasConcluidas, txtNome.getText(), txtRa.getText(), data, cmbCurso.getSelectedItem().toString(), txtTotalCreditos.getText());
         
         
         
    }//GEN-LAST:event_btnRelatorioMateriasActionPerformed

    private void chbCheckOutrosDocsStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_chbCheckOutrosDocsStateChanged

    }//GEN-LAST:event_chbCheckOutrosDocsStateChanged

    private void chbCheckOutrosDocsActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_chbCheckOutrosDocsActionPerformed
        if(chbCheckOutrosDocs.isSelected()){
            chbCheckTrueOutrosDocs.setVisible(true);
            chbCheckTrueOutrosDocs.setEnabled(true);
            chbCheckTrueOutrosDocs.setSelected(false);
        }
        else{
            chbCheckTrueOutrosDocs.setVisible(false);
            chbCheckTrueOutrosDocs.setEnabled(false);
        }
    }//GEN-LAST:event_chbCheckOutrosDocsActionPerformed

    
    public void recebeObjeto (AlunoBD al){
        //Metodos para conversões de data
        MetodosVerificacaoBD metBD = new MetodosVerificacaoBD();
        MateriasConcluidasDAO mc = new MateriasConcluidasDAO();
        
        //recebe objeto da tela aluno
        txtRa.setText(String.valueOf(al.getRa()));
        txtNome.setText(al.getNome());
        txtCpf.setText(al.getCpf());
        txtTelefone.setText(al.getTelefone());
        txtCelular.setText(al.getCelular());
        txtData.setDate(metBD.stringToDate(al.getDataIngresso()));
        txtEmail.setText(al.getEmail());
        
        if(al.getBolsista().equals("Sim")){
            cmbBolsista.setSelectedIndex(0);
        }else{
            cmbBolsista.setSelectedIndex(1);
        }

        
        ProfessorBD profObj = new ProfessorBD();
        profObj.setCodigo(al.getCodProfessor());
        cmbProfessor.setSelectedItem(profObj);
        
        CursoBD cursoObj = new CursoBD();
        cursoObj.setCodigo(al.getCodCurso());
        cmbCurso.setSelectedItem(cursoObj);
        
        if(al.getSexo().equals("M")){
            rdbMasculino.setSelected(true);
        }
        else{
            rdbFeminino.setSelected(true);
            chbCertificadoMilitar.setVisible(false);
        }
        
        //Setar os CheckBox
        if(al.getDocRG().equals("S")){
            chbRG.setSelected(true);
        }
        
        if(al.getDocCPF().equals("S")){
            chbCPF.setSelected(true);
        }
        
        if(al.getDocCertidao().equals("S")){
            chbCertidao.setSelected(true);
        }
        
        if(al.getDocTitulo().equals("S")){
            chbTituloEleitor.setSelected(true);
        }
        
        if(al.getDocCurriculum().equals("S")){
            chbCurriculum.setSelected(true);
        }
        
        if(al.getDocFoto().equals("S")){
            chbFoto.setSelected(true);
        }
        
        if(al.getDocCarta().equals("S")){
            chbCarta.setSelected(true);
        }
        
        if(al.getDocHistorico().equals("S")){
            chbHistorico.setSelected(true);
        }
        
        if(al.getDocDiploma().equals("S")){
            chbDiploma.setSelected(true);
        }
        
        if(al.getDocCertificado().equals("S")){
            chbCertificadoMilitar.setSelected(true);
        }
       
        if(al.getPossuiOutrosDocumentos().equals("S")){
            chbCheckOutrosDocs.setSelected(true);
            chbCheckTrueOutrosDocs.setVisible(true);
        }
        
        if(al.getOutrosDocsEntregues().equals("S")){
            chbCheckTrueOutrosDocs.setSelected(true);
        }
        
       
        
        txtObservacoes.setText(String.valueOf(al.getObservacoes()));
        
        List<MateriasConcluidasBD> listaFiltro = new ArrayList(); 
        listaFiltro = mc.carregaMateriasConcluidas(al.getRa());
                
        DefaultTableModel tbm = (DefaultTableModel)tblMateriasConcluidas.getModel();

        for(int i = tbm.getRowCount()-1; i >= 0; i--){
            tbm.removeRow(i);
        }
        
        int i = 0;
        int numeroCreditos = 0;
        
        for(MateriasConcluidasBD mcl : listaFiltro){
            tbm.addRow(new String[1]);
            tblMateriasConcluidas.setValueAt(mcl.getAnoTurma(), i, 0); //Objeto Linha Coluna
            tblMateriasConcluidas.setValueAt(mcl.getNomeDisciplina(), i, 1);
            tblMateriasConcluidas.setValueAt(mcl.getCreditosDisciplina(), i, 2);
            numeroCreditos += mcl.getCreditosDisciplina();
            i++;
        }
        txtTotalCreditos.setText(String.valueOf(numeroCreditos));
    }
    
    public void visualizaObjeto (AlunoBD al){
        recebeObjeto(al);
        //lblRotulo.setText("Visualizar Aluno");
        
        //travar ou habilitar os componentes
        btnRelatorioMaterias.setVisible(true);
        txtRa.setEnabled(false);
        txtNome.setEnabled(false);
        txtCpf.setEnabled(false);
        txtTelefone.setEnabled(false);
        txtCelular.setEnabled(false);
        cmbBolsista.setEnabled(false);
        txtData.setEnabled(false);
        txtEmail.setEnabled(false);
        cmbProfessor.setEnabled(false);
        cmbCurso.setEnabled(false);
        btnCadastrar.setEnabled(false);
        rdbFeminino.setEnabled(false);
        rdbMasculino.setEnabled(false);
      
        chbCPF.setEnabled(false);
        chbRG.setEnabled(false);
        chbTituloEleitor.setEnabled(false);
        chbCertidao.setEnabled(false);
        chbCurriculum.setEnabled(false);
        chbCarta.setEnabled(false);
        chbFoto.setEnabled(false);
        chbHistorico.setEnabled(false);
        chbDiploma.setEnabled(false);
        chbCertificadoMilitar.setEnabled(false);
        chbCheckOutrosDocs.setEnabled(false);
        chbCheckTrueOutrosDocs.setEnabled(false);
        txtObservacoes.setEnabled(false);
    }
    
    public static void main(String args[]) {

        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /*
         * If Nimbus (introduced in Java SE 6) is not available, stay with the
         * default look and feel. For details see
         * http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(TelaCadAluno.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(TelaCadAluno.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(TelaCadAluno.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(TelaCadAluno.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        java.awt.EventQueue.invokeLater(new Runnable() {

            @Override
            public void run() {
                TelaCadAluno dialog = new TelaCadAluno(new javax.swing.JFrame(), true);
                dialog.addWindowListener(new java.awt.event.WindowAdapter() {

                    @Override
                    public void windowClosing(java.awt.event.WindowEvent e) {
                        System.exit(0);
                    }
                });
                dialog.setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnCadastrar;
    private javax.swing.JButton btnRelatorioMaterias;
    private javax.swing.JButton btnVoltar;
    private javax.swing.JCheckBox chbCPF;
    private javax.swing.JCheckBox chbCarta;
    private javax.swing.JCheckBox chbCertidao;
    private javax.swing.JCheckBox chbCertificadoMilitar;
    private javax.swing.JCheckBox chbCheckOutrosDocs;
    private javax.swing.JCheckBox chbCheckTrueOutrosDocs;
    private javax.swing.JCheckBox chbCurriculum;
    private javax.swing.JCheckBox chbDiploma;
    private javax.swing.JCheckBox chbFoto;
    private javax.swing.JCheckBox chbHistorico;
    private javax.swing.JCheckBox chbRG;
    private javax.swing.JCheckBox chbTituloEleitor;
    private javax.swing.JComboBox cmbBolsista;
    private javax.swing.JComboBox cmbCurso;
    private javax.swing.JComboBox cmbProfessor;
    private javax.swing.ButtonGroup grpSexo;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JLabel lblBolsista;
    private javax.swing.JLabel lblCel;
    private javax.swing.JLabel lblCpf;
    private javax.swing.JLabel lblCurso;
    private javax.swing.JLabel lblDataIngresso;
    private javax.swing.JLabel lblEmail;
    private javax.swing.JLabel lblNome;
    private javax.swing.JLabel lblOrientador;
    private javax.swing.JLabel lblRa;
    private javax.swing.JLabel lblTel;
    private javax.swing.JPanel pnlDadosBasicos;
    private javax.swing.JPanel pnlDocumentos;
    private javax.swing.JTabbedPane pnlMateriasConcluidas;
    private javax.swing.JPanel pnlVoltar;
    private javax.swing.JRadioButton rdbFeminino;
    private javax.swing.JRadioButton rdbMasculino;
    private javax.swing.JTable tblMateriasConcluidas;
    private javax.swing.JFormattedTextField txtCelular;
    private javax.swing.JFormattedTextField txtCpf;
    private com.toedter.calendar.JDateChooser txtData;
    private javax.swing.JTextField txtEmail;
    private javax.swing.JTextField txtNome;
    private javax.swing.JEditorPane txtObservacoes;
    private javax.swing.JFormattedTextField txtRa;
    private javax.swing.JFormattedTextField txtTelefone;
    private javax.swing.JTextField txtTotalCreditos;
    // End of variables declaration//GEN-END:variables
}
